package com.tvpush.manage.core.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author ouyangzn
 * @since 2019-03-22
 */
@Data
@Accessors(chain = true)
@TableName("tp_terminal")
public class Terminal extends Model<Terminal> {

    private static final long serialVersionUID = 1L;

    /**
     * 标识
     */
    private Integer id;
    /**
     * 信号
     */
    @TableField("model_num")
    private String modelNum;
    /**
     * 盟友ID
     */
    @TableField("ally_id")
    private String allyId;
    /**
     * 品牌ID
     */
    @TableField("brand_id")
    private Integer brandId;
    /**
     * 无线MAC地址
     */
    @TableField("wlan_mac")
    private String wlanMac;
    /**
     * MAC地址
     */
    private String mac;
    /**
     * IP地址
     */
    @TableField("ip_addr")
    private String ipAddr;
    /**
     * 软件版本
     */
    private String version;
    /**
     * 在线状态
     */
    @TableField("online_status")
    private Long onlineStatus;
    /**
     * 黑屏状态
     */
    @TableField("blank_status")
    private Long blankStatus;
    /**
     * 注册时间
     */
    @TableField("reg_time")
    private Date regTime;
    /**
     * 应用状态
     */
    private String remark;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;


    public static final String ID = "id";

    public static final String MODEL_NUM = "model_num";

    public static final String ALLY_ID = "ally_id";

    public static final String BRAND_ID = "brand_id";

    public static final String WLAN_MAC = "wlan_mac";

    public static final String MAC = "mac";

    public static final String IP_ADDR = "ip_addr";

    public static final String VERSION = "version";

    public static final String ONLINE_STATUS = "online_status";

    public static final String BLANK_STATUS = "blank_status";

    public static final String REG_TIME = "reg_time";

    public static final String REMARK = "remark";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
